﻿@model IList<ProductOverviewModel>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.RecentlyViewedProducts").Text);

    var isLogin = !EngineContext.Current.Resolve<IWorkContext>().CurrentCustomer.IsGuest();
}
@using Autofac
@using Nop.Core;
@using Nop.Core.Domain.Customers
@using Nop.Core.Infrastructure;
@using Nop.Web.Models.Catalog;
@if (0 != 0)
{ 
    <div class="page recently-viewed-products-page">
        <div class="page-title">
            <h2>@T("Products.RecentlyViewedProducts")</h2>
        </div>
        <div class="page-body">
            @if (Model.Count > 0)
            {
                <div class="product-grid">
                    @foreach (var item in Model)
                    {
                        <div class="recently-viewed-product">
                            <a href="@Url.RouteUrl("Product", new { SeName = item.SeName })" title="@item.DefaultPictureModel.Title">
                                <div class="image">
                                    <div class="image-wrapper">
                                        <img class="img-responsive" alt="@item.DefaultPictureModel.AlternateText" src="@item.DefaultPictureModel.ImageUrl" title="@item.DefaultPictureModel.Title" />
                                    </div>
                                </div>
                            </a>
                        </div>
                    }
                </div>
            }
        </div>
    </div>
}